package com.aplink.generic.constant.type;

public enum TargetRuleOperator {
	EQUAL("Equal"),
	GREATER_THAN("GreaterThan"),
	IS_NOT_NULL_OR_EMPTY("IsNotNullOrEmpty"),
	LESS_THAN("LessThan"),
	NOT_EQUAL("NotEqual"),
	NULL_OR_EMPTY("NullOrEmpty");
	public static TargetRuleOperator get(final String key) {
		for (final TargetRuleOperator operator : TargetRuleOperator.values()) {
			if (operator.mValue.equalsIgnoreCase(key)) {
				return operator;
			}
		}
		return null;
	}

	private String mValue;

	private TargetRuleOperator(final String value) {
		this.mValue = value;
	}
}
